package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class Web_socket_workerBean implements Serializable ,IJsonParser{

	/**
	 * "web_socket_worker": {
  "host": "chat.ykdllmyr.com",
  "port": 9990
}
	 */
	private static final long serialVersionUID = 1408363618788574008L;
	private String host;
	private String port;
	public String getHost() {
		return host;
	}
	public String getPort() {
		return port;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, Web_socket_workerBean.class);
		}
		return null;
	}

}
